package com.shxt.testMyBatis;

import java.util.HashMap;
import java.util.Map;

import com.shxt.pojo.D_User;
import com.shxt.service.D_UserService;

public class TestD_User {
	public static void main(String[] args) {
		Map<String,String> mss = new HashMap<String,String>();
		mss.put("M_Username","123");
		mss.put("M_Password","123");
		D_User du1 = D_UserService.getInstance().validateUser(mss);
		System.out.println(du1.getD_UserId());
		D_User user = new D_User();
		user.setD_Mail("abctest");
		//user.setD_Password("123update");
		//user.setD_Register_Date("12313");
		user.setD_Username("asd");
		//user.setD_UserType(123);
		user.setD_Safe_Answer("123123update");
		user.setD_Safe_Question("123123123123");
		user.setD_User_Pic("zz");
		user.setD_UserId(20120509);
		int i = D_UserService.getInstance().updateUser(user);
		System.out.println(i);
		D_UserService.getInstance().allUserMail();
	}
}
